package domain;

import java.sql.Date;

public class student {
    private  int s_id;//学生id
    private String s_name;//学生姓名
    private String s_home;//学生籍贯
    private String s_user;//学生用户名
    private String s_password;//学生密码
    private Date crete_time;//创建时间
    private Date update_time;//修改时间
    private  int s_groupid;//分组id
    private  studentgroup studentgroup;

    public int getS_groupid() {
        return s_groupid;
    }

    public void setS_groupid(int s_groupid) {
        this.s_groupid = s_groupid;
    }

    public domain.studentgroup getStudentgroup() {
        return studentgroup;
    }

    public void setStudentgroup(domain.studentgroup studentgroup) {
        this.studentgroup = studentgroup;
    }

    //alt+insert
    public int getS_id() {
        return s_id;
    }

    public void setS_id(int s_id) {
        this.s_id = s_id;
    }

    public String getS_name() {
        return s_name;
    }

    public void setS_name(String s_name) {
        this.s_name = s_name;
    }

    public String getS_home() {
        return s_home;
    }

    public void setS_home(String s_home) {
        this.s_home = s_home;
    }

    public String getS_user() {
        return s_user;
    }

    public void setS_user(String s_user) {
        this.s_user = s_user;
    }

    public String getS_password() {
        return s_password;
    }

    public void setS_password(String s_password) {
        this.s_password = s_password;
    }

    public Date getCrete_time() {
        return crete_time;
    }

    public void setCrete_time(Date crete_time) {
        this.crete_time = crete_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }


    //无参构造---必须要添加的

    public student() {
    }

    public student(int s_groupid) {
        this.s_groupid = s_groupid;
    }

    //根据业务需求来决定添加哪几个参数的有参构造
    public student(String s_user, String s_password) {
        this.s_user = s_user;
        this.s_password = s_password;
    }

    public student(int s_id, String s_name, String s_home, String s_user, String s_password, Date crete_time, Date update_time) {
        this.s_id = s_id;
        this.s_name = s_name;
        this.s_home = s_home;
        this.s_user = s_user;
        this.s_password = s_password;
        this.crete_time = crete_time;
        this.update_time = update_time;
    }

    @Override
    public String toString() {
        return "student{" +
                "s_id=" + s_id +
                ", s_name='" + s_name + '\'' +
                ", s_home='" + s_home + '\'' +
                ", s_user='" + s_user + '\'' +
                ", s_password='" + s_password + '\'' +
                ", crete_time=" + crete_time +
                ", update_time=" + update_time +
                '}';
    }
}
